package com.hwg.shiliupro.service.Impl;



import com.hwg.shiliupro.dao.UserRoleMapper;
import com.hwg.shiliupro.po.UserRole;
import com.hwg.shiliupro.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserRoleServiceImpl implements UserRoleService {
    @Autowired
    private UserRoleMapper userRoleMapper;

    /**
     * 通过用户的uId查询用户--角色表信息
     *
     * @param uId 你id
     * @return {@link}
     */
    @Override
    public List<UserRole> selectRoleByUid(Integer uId) {
        List<UserRole> userRoles = userRoleMapper.selectRoleByUid(uId);
        return userRoles;
    }



}
